import request from '@/utils/request'

// 查询支付配置列表
export function listPaymentConfig(query) {
  return request({
    url: '/system/paymentConfig/ListPaymentConfig',
    method: 'get',
    params: query
  })
}

// 新增支付配置
export function addPaymentConfig(data) {
  return request({
    url: '/system/paymentConfig/addPaymentConfig',
    method: 'post',
    data: data
  })
}

// 修改支付配置
export function updatePaymentConfig(data) {
  return request({
    url: '/system/paymentConfig/updatePaymentConfig',
    method: 'post',
    data: data
  })
}

// 删除支付配置
export function deletePaymentConfig(data) {
  return request({
    url: '/system/paymentConfig/deletePaymentConfig',
    method: 'post',
    params: data
  })
}
